package com.xxxx.api.service;

import com.xxxx.api.pojo.Admin;
import com.xxxx.api.pojo.Cart;
import com.xxxx.api.pojo.CartResult;
import com.xxxx.api.pojo.ResultInfo;

import java.util.List;

/**
 * @author shilong-wang on 2020-11-06
 */
public interface CartService {
    /**
     * addCart接口
     * @param userId
     * @param goodsId
     * @param goodsNum
     * @return
     */
     ResultInfo addCart(String userId, String goodsId, String goodsNum);

    /**
     * getCartNum
     * @param admin
     * @return
     */
     Integer getCartNum(Admin admin);

    /**
     * cleanMyCart
     * @param admin
     */
     void cleanMyCart(Admin admin);

    /**
     * getCartList
     * @param admin
     * @return
     */
     CartResult getCartList(Admin admin);
}
